Skip to content

Validate page selection arguments - #521

Merged
SimonCropp merged 1 commit into
mainfrom
Validate-page-selection-arguments
Jul 14, 2026
Merged

Validate page selection arguments#521
SimonCropp merged 1 commit into
mainfrom
Validate-page-selection-arguments

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

Add guard clauses to VerifySettings.PagesToInclude and VerifySettings.SinglePage to reject invalid values early with ArgumentOutOfRangeException. This prevents confusing downstream failures when page ranges are empty or negative. Also adds PageSelectionTests to cover rejected negative/non-positive inputs and accepted boundary values.

Add guard clauses to `VerifySettings.PagesToInclude` and `VerifySettings.SinglePage` to reject invalid values early with `ArgumentOutOfRangeException`. This prevents confusing downstream failures when page ranges are empty or negative. Also adds `PageSelectionTests` to cover rejected negative/non-positive inputs and accepted boundary values.
@SimonCropp SimonCropp added this to the 3.3.1 milestone Jul 14, 2026
@SimonCropp
SimonCropp merged commit 3372a48 into main Jul 14, 2026
4 of 6 checks passed
@SimonCropp
SimonCropp deleted the Validate-page-selection-arguments branch July 14, 2026 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant